//
//  JourneyParserModel2.m
//  ITrip
//
//  Created by 1564335 on 15-5-31.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "JourneyParserModel2.h"

@implementation JourneyParserModel2

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [NSMutableArray array];
        self.memo = dic[@"memo"];
        NSArray *array = dic[@"plan_nodes"];
        for (NSDictionary *dic in array) {
            JourneyParserModel3 *model = [[JourneyParserModel3 alloc] init:dic];
            model.memo = self.memo;
            [self.arrayData addObject:model];
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
